# -*- coding: utf-8 -*-

# @Author : guoxin

# @Time : 2024/4/2 17:34

# @QQ :363673234

class LeftMenuBase:

    def level_one_menu(self, menu_name):
        """
        一级菜单栏
        :param menu_name: 菜单栏名称
        :return:
        """
        return "//aside[@class='site-sidebar site-sidebar--dark']//span[text()='" + menu_name + "']/parent::div"

    def level_two_menu(self, menu_name):
        """
        二级菜单栏
        :param menu_name: 菜单栏名称
        :return:
        """
        return "//aside[@class='site-sidebar site-sidebar--dark']//span[text()='" + menu_name + "']/parent::li"


if __name__ == '__main__':
    # print(LeftMenuBase().level_one_menu("产品"))
    print(LeftMenuBase().level_one_menu("资质认证"))

